package cc.comac.mom.api;

import java.util.List;

import org.springframework.cloud.openfeign.FeignClient;
import org.springframework.web.bind.annotation.RequestBody;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RequestMethod;

import cc.comac.mom.bean.EquipFaultCause;
import cc.comac.mom.bean.ResultDev;
import cc.comac.mom.util.ResultBean;
@FeignClient(name = "mom-equipment-mgmt-srv")
public interface EquipFaultCauseService {
	
	@RequestMapping(value = "/p/cs/EquipFaultCauseService/insertFaultCause",method = RequestMethod.POST)
	public ResultBean insertFaultCause(@RequestBody EquipFaultCause equipFaultlCause);
	
	@RequestMapping(value = "/p/cs/EquipFaultCauseService/updateFaultCause",method = RequestMethod.POST)
	public ResultBean updateFaultCause(@RequestBody EquipFaultCause equipFaultlCause);
	
	@RequestMapping(value = "/p/cs/EquipFaultCauseService/batchDelete",method = RequestMethod.POST)
	public ResultBean batchDelete(@RequestBody List<EquipFaultCause> list);
	
	@RequestMapping(value = "/p/cs/EquipFaultCauseService/selectSomeField",method = RequestMethod.POST)
	public ResultDev selectSomeField (@RequestBody EquipFaultCause equipFaultlCause);
	
	@RequestMapping(value = "/p/cs/EquipFaultCauseService/selectAll",method = RequestMethod.POST)
	public ResultDev selectAll();
}
